import org.springframework.web.multipart.commons.CommonsMultipartFile

class TestController {

    def upload = {
    	CommonsMultipartFile file = (CommonsMultipartFile)params.Filedata
    	
    	file.transferTo( new File("web-app/uploads/" + file.getOriginalFilename()) );
    	
    	render ""
    }
}
